import axios from "@/utils/index.js";

export function zoomeyeVpsList() {
  return axios.get('/zoomeye/list');
}

export function zoomeyeJsonsList(ids) {
  return axios.post('/zoomeye/downloadJson', ids,{responseType: 'blob' });
}
export function zoomeyedeleteList(id) {
  return axios.post(`/zoomeye/delete/${id}`);
}
export function zoomeyeinsertList(from) {
  return axios.post('/zoomeye/insert',from);
}
export function zoomeyeupdateList(from) {
  console.log(from,"提交");
  
  return axios.post('/zoomeye/update',from);
}
export function zoomeyeXmlList(ids) {
  return axios.post('/zoomeye/downloadXml', ids,{responseType: 'blob' });
}
export function zoomeyeXlsList(ids) {
  return axios.post('/zoomeye/downloadXls', ids, { responseType: 'blob' });
}
export function zoomeyeSelectXlsList(data) {
  console.log(data, `data`);
  return axios.get('/zoomeye/condition', { params: data });
}